package com.bye.xiaomi_mall.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 轮播图对象 td_rotate_image
 *
 * @author ruoyi
 * @date 2025-03-16
 */
public class TdRotateImage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 轮播图id
     */
    private Long id;

    /**
     * 轮播图名称
     */
    @Excel(name = "轮播图名称")
    private String imageName;

    /**
     * 图片地址
     */
    @Excel(name = "图片地址")
    private String url;

    /**
     * 绑定的商品id
     */
    @Excel(name = "绑定的商品id")
    private Long bindingGoodsId;

    @Excel(name = "绑定的商品")
    private TdGoods goods;

    public TdGoods getGoods() {
        return goods;
    }

    public void setGoods(TdGoods goods) {
        this.goods = goods;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public String getImageName() {
        return imageName;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setBindingGoodsId(Long bindingGoodsId) {
        this.bindingGoodsId = bindingGoodsId;
    }

    public Long getBindingGoodsId() {
        return bindingGoodsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("imageName", getImageName())
                .append("url", getUrl())
                .append("bindingGoodsId", getBindingGoodsId())
                .append("createTime", getCreateTime())
                .toString();
    }
}
